//
//  DoctorCollectionViewCell.m
//  7-11快医
//
//  Created by amor on 16/7/13.
//  Copyright © 2016年 amor. All rights reserved.
//

#import "CJTDoctorCollectionCell.h"
#import <Masonry/Masonry.h>

@interface CJTDoctorCollectionCell ()

//@property (strong, nonatomic) UIView *views;

@end


@implementation CJTDoctorCollectionCell


+(instancetype)doctorCollectionCellWithCollectionView:(UICollectionView *)collectionView Identifier:(NSString *)Identifier forIndexPath:(NSIndexPath *)indexPath{
    
    
    if (indexPath.row == 0) {
        CJTDoctorCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"collectionViewCell1" forIndexPath:indexPath];
        
        UITextView *textView = [[UITextView alloc] init];
        textView.text = @"gfdgdfgdgfdgf";
        textView.backgroundColor = [UIColor redColor];
        [cell.contentView addSubview:textView];
        
        [textView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsZero);
        }];
        
        return cell;
        
        
        
    } else if(indexPath.row == 1)   {
        CJTDoctorCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"collectionViewCell2" forIndexPath:indexPath];
        
        UITextView *textView = [[UITextView alloc] init];
        textView.text = @"hhhhhhh";
        textView.backgroundColor = [UIColor yellowColor];
        [cell.contentView addSubview:textView];
        [textView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsZero);
        }];
        
        return cell;
        
    }else if(indexPath.row == 2){
        CJTDoctorCollectionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"collectionViewCell3" forIndexPath:indexPath];
        
        UITextView *textView = [[UITextView alloc] init];
        textView.text = @"ggggggg";
        textView.backgroundColor = [UIColor blueColor];
        [cell.contentView addSubview:textView];
        [textView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsZero);
        }];
        
        return cell;
        
    }
    return nil;

}


@end
